﻿using Microsoft.Owin;
using Owin;
using OwinGlobalization.Models;
using MVCControlsToolkit.Owin.Globalization;

[assembly: OwinStartupAttribute(typeof(OwinGlobalization.Startup))]
namespace OwinGlobalization
{
    public partial class Startup
    {
        public void Configuration(IAppBuilder app)
        {
            ConfigureAuth(app);
            app.UseGlobalization(new OwinGlobalizationOptions("en-US",true)
                .DisablePaths("Content", "bundles")
                .Add("it-IT", true).AddCustomSeeker(new CultureFromPreferences()));
            
        }
    }
}
